<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>功能管理</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<link rel="stylesheet" href="<%=path%>/css/demo.css" type="text/css">
	<link rel="stylesheet" href="<%=path%>/css/table.css" type="text/css">
	<script type="text/javascript" src="/RMS/js/jquery.js"></script>
	<script type="text/javascript" src="/RMS/js/function/list.js"></script>

	
  </head>
  
  <body>
 	 
    <div style="text-aglin:center ;position: absolute;left: 260px;top: 20px;" id='functionManager'>
    	功能管理 <span id="addUser" onclick=""><a href="javascript:void(0)">添加功能</a></span><br>
 	 
    	<table width="653" height="40">
    		<thead>
    			<tr>
    				<th>功能ID</th>
    				<th>功能名称</th>
    				<th>功能描述</th>
    				<th>操作</th>
    			</tr>
    		</thead>
    		<tbody>
    			<s:if test="functionList!=null">
    				<s:iterator value="functionList" status="index">
    					<tr>
    						<td><s:if test="functionId==null || functionId=='' ">--</s:if><s:else><s:property value="functionId"/></s:else></td>
    						<td><s:if test="functionName==null || functionName=='' ">--</s:if><s:else><s:property value="functionName"/></s:else></td>
    						<td><s:if test="functionName==null || functionDesc=='' ">--</s:if><s:else><s:property value="functionDesc"/></s:else></td>
    						<td><a href="javascript:void(0)" id="findUpdate" name="<s:property value="functionId"/>">修改</a><a href="javascript:void(0)" id="delete" name="<s:property value="functionId"/>">删除</a></td>
    					</tr>
    				</s:iterator>
    			</s:if>
    		</tbody>
    		 
    	</table>
    </div>
    <div id="add" style="position: absolute;left: 260px;top: 20px;">
	    <form action="main/function/addFunction" method="post">
	           功能管理
	    <table>
	    	<tbody>
	    		<tr><th>功能名称：</th><td><input type="text" name="function.functionName"/></td></tr>
	    		<tr><th>功能描述：</th><td><textarea name="function.functionDesc" style="height:100px;width:200px"></textarea></td></tr>
	    		<%--<tr><th>状      态：</th><td><input type="radio" name="function.status"  value="1"/></td></tr>
	    		--%><tr><th>操      作：</th><td style="padding-left:50px"><input type="submit" id="submit" value="增加"><input type="button" id="cancel" value="取消"></td></tr>
	    	</tbody>
	    </table>
	    </form>
    </div>
    <%--<s:debug></s:debug>--%>
    </body>
</html>
